import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { ButtonClass } from '/common/componentsTpl/ButtonComp/index';

export class ExportDataBtnClass extends ButtonClass {
}

/**
 * 支持 Button 组件的所有属性
 * @type {{actionType: string, appConfigObj: {}}}
 */
ExportDataBtnClass.defaultProps = {
  ...ButtonClass.defaultProps,
  actionType: 'exportData'
};

ExportDataBtnClass.getConnectData = ButtonClass.getConnectData;

const ExportDataBtn = connect(ExportDataBtnClass.getConnectData)(ExportDataBtnClass);

export default ExportDataBtn;
